-- GENERATED SPELL FOR [Blackrock Sorcerer] --


function spell0_7026(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20823,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7026', 3000, 1)
end

function spell1_7026(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(20827,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7026', 11000, 1)
end

function Sorts_7026(pUnit, Event)
local choix_sorts_7026 = math.random(0, 1)
if choix_sorts_7026 == 0 then
pUnit:RegisterEvent('spell0_7026', 1, 1)
end
if choix_sorts_7026 == 1 then
pUnit:RegisterEvent('spell1_7026', 1, 1)
end
end

function mob7026_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7026', math.random(1500, 3000), 1)
end

function mob7026_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7026_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7026_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7026, 1, 'mob7026_Action')
RegisterUnitEvent(7026, 2, 'mob7026_Leave')
RegisterUnitEvent(7026, 3, 'mob7026_Kill')
RegisterUnitEvent(7026, 4, 'mob7026_Die')
